Skip to content

DIA-6055 standardize errors#32

Merged
andresilveirah merged 8 commits intomainfrom
DIA-6055_standardise_errors
Sep 11, 2025
Merged

DIA-6055 standardize errors#32
andresilveirah merged 8 commits intomainfrom
DIA-6055_standardise_errors

Conversation

@andresilveirah
Copy link
Member

The SPError object

export type SPErrorName =
  | "Unknown"
  | "NoInternetConnection"
  | "LoadMessagesError"
  | "RenderingAppError"
  | "ReportActionError"
  | "ReportCustomConsentError"
  | "AndroidNoIntentFound"
  | string;

export type SPError = {
  name: SPErrorName;
  description: string;
  campaignType?: SPCampaignType;
};

Notice campaignType is optional. Not all errors cases contain that information and on Android that data is not provided by the native SDK.

@andresilveirah andresilveirah merged commit 5eaeba0 into main Sep 11, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant